<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        img {
            width: 250px;
            height: 250px;
            position: absolute;
        }
    </style>
</head>

<body>
    <img src="../../../../元气壁纸缓存/img/aaa.jpg" alt="">
    <script>
        var img = document.querySelector("img")
        document.onmousemove = function (e) {
            var event = e || window.event;
            var x = event.clientX;
            var y = event.clientY;
            img.style.top = y + "px"
            img.style.left = x + "px"
        }
        var a = [1,2,2,3,4,5,]
        for(i=0;i<6;i++){
            var b = 20
        }
        console.log(b);
        var a = 0;
       function fn (){
        a++
        // if(a == 2){
        //     (a = 0)
        // }else{
        //     fn();
        // }
        console.log(a)
        
       }
       fn(fn())
    </script>
</body>

</html>